<template>
  <div class="main_login">
    <span class="log">转日莲，更无柳絮因风起，唯有葵花向日倾</span>
    <div class="login_container">
      <div class="login_box">
        <div class="get_back_box">
          <el-form ref="form" :model="form">
            <el-form-item>
              <el-input class="QQ_email"
                        placeholder="请输入用于找回的QQ邮箱"
                        prefix-icon="el-icon-search"
                        v-model="email">
              </el-input>
            </el-form-item>
            <el-button @click="verification" class="retrieve_btn" type="primary">确认找回</el-button>
          </el-form>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "RetrievePassword",
  data: function () {
    return {
      email: '',
      username: '',
      usernumber: '',
      password: '',
      verification_code: '',
      man: '',
    }
  },
  methods: {
    verification() {
      this.$prompt('请输入邮箱', '提示', {
        confirmButtonText: '确定',
        cancelButtonText: '取消',
        inputPattern: /[0-9]{6,6}/,
        inputErrorMessage: '邮箱格式不正确'
      }).then(({value}) => {
        this.$message({
          type: 'success',
          message: '你的邮箱是: ' + value
        });
      }).catch(() => {
        this.$message({
          type: 'info',
          message: '取消输入'
        });
      });
    }
  }
}
</script>

<style scoped>
.span_msg {
  color: #606266;
  text-align: center;
  font-size: 19px;
}

.log {
  position: absolute;
  left: 50%;
  top: 1%;
  transform: translate(-50%);
  color: #606266;
  text-align: center;
  font-size: 12px;
}


.main_login {
  width: 100%;
  height: 100%;
  background-color: #f0f2f5;
}

.login_container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: #f0f2f5;
}

.login_logo img {
  width: 240px;
  margin-bottom: 20px;
}


.login_box {
  box-shadow: 10px 10px 30px gray;
  height: 250px;
  width: 370px;
  background-color: #ffffff;
  padding-left: 20px;
  padding-right: 20px;
}

.get_back_box {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  position: relative;
}

.QQ_email {
  margin-top: 20%;
  /*position: absolute;*/
  /*top: 40%;*/
  /*transform: translateY(-50%);*/
  /*color: yellow!important;*/
}

.retrieve_btn {
  margin-top: 8%;
  margin-left: 70%;
}

</style>
